import { commonRequestApi } from './request';

//更新用户信息
export const updateInfoApi = (data: any) =>
  commonRequestApi('/wine-internet-community/user/info/update', data, 'POST');
//用户详情
export const queryUserInfoApi = (data: any) =>
  commonRequestApi('/wine-internet-community/user/info/query', data, 'POST');

//我的收藏
export const collectionListApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/my/content/collection/list',
    data,
    'POST'
  );
//我的发布
export const publishListApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/content/publish/my/list',
    data,
    'POST'
  );

//意见反馈
export const feedbackApi = (data: any) =>
  commonRequestApi('/wine-internet-community/my/feedback/save', data, 'POST');

//一键登录
export const oneClickLoginApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/wei/user/oneClickLogin',
    data,
    'POST'
  );
